using HMCollada.Core;

namespace HMCollada.Core {
    internal struct HMColladaInput {
        internal int offset;
        internal string semantic;
        internal string source;
        internal int set;
    }
}

namespace HMCollada {
    internal partial class HMColladaLoader {
        private static HMColladaInput LoadInput() {
            HMColladaInput newInput = new HMColladaInput();

            try { newInput.offset = int.Parse(colladaReader.GetAttribute("offset")); } catch { }
            newInput.semantic = colladaReader.GetAttribute("semantic");
            newInput.source = colladaReader.GetAttribute("source");
            try { newInput.set = int.Parse(colladaReader.GetAttribute("set")); } catch { }

            if (colladaReader.IsEmptyElement) colladaReader.Read();
            return newInput;
        }
    }
}